package com.cxx.entity;

import java.util.Objects;

public class Position {
    private int posId;
    private String posName;
    private String desc;

    public Position() {
    }

    public Position(int posId, String posName) {
        this.posId = posId;
        this.posName = posName;
    }

    public int getPosId() {
        return posId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Position position = (Position) o;
        return posId == position.posId &&
                Objects.equals(posName, position.posName) &&
                Objects.equals(desc, position.desc);
    }

    @Override
    public int hashCode() {

        return Objects.hash(posId, posName, desc);
    }

    public void setPosId(int posId) {
        this.posId = posId;
    }

    public String getPosName() {
        return posName;
    }

    public void setPosName(String posName) {
        this.posName = posName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Position(int posId, String posName, String desc) {
        this.posId = posId;
        this.posName = posName;
        this.desc = desc;
    }
}
